<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Board/nrf6310_nrf2752/ble/ble_app_pwr_profiling/main.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">S110_nRF51822/Board/nrf6310_nrf2752/ble/ble_app_pwr_profiling/main.c File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="nordic__common_8h_source.html">nordic_common.h</a>&quot;</code><br/>
<code>#include &quot;nrf.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="nrf__assert_8h_source.html">nrf_assert.h</a>&quot;</code><br/>
<code>#include &quot;nrf_error.h&quot;</code><br/>
<code>#include &quot;nrf51_bitfields.h&quot;</code><br/>
<code>#include &quot;ble.h&quot;</code><br/>
<code>#include &quot;ble_hci.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="ble__srv__common_8h_source.html">ble_srv_common.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ble__advdata_8h_source.html">ble_advdata.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ble__nrf6310__pins_8h_source.html">ble_nrf6310_pins.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ble__sensorsim_8h_source.html">ble_sensorsim.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ble__stack__handler_8h_source.html">ble_stack_handler.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="app__timer_8h_source.html">app_timer.h</a>&quot;</code><br/>
</div>
<p><a href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga560763b9fb39a5ff10a86255b583acc0">APP_CFG_NON_CONN_ADV_TIMEOUT</a>&#160;&#160;&#160;30</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga21391c876b70819800ee07cabb337448">APP_CFG_CHAR_NOTIF_TIMEOUT</a>&#160;&#160;&#160;5000</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gadc3efc37d835db80f2359a6d24edb5d1">APP_CFG_ADV_DATA_LEN</a>&#160;&#160;&#160;31</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga010a0abfa2f84b5290d55c0a3f3757f0">APP_CFG_CONNECTION_INTERVAL</a>&#160;&#160;&#160;20</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga25c08352c9bdbc5c273f2260753306ce">APP_CFG_CHAR_LEN</a>&#160;&#160;&#160;20</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaaed671c6b234821122d1d5001f3c7070">NOTIF_BUTTON_PIN_NO</a>&#160;&#160;&#160;NRF6310_BUTTON_0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga0ba1e5fcb6523111994123a3149aeabb">NON_CONN_ADV_BUTTON_PIN_NO</a>&#160;&#160;&#160;NRF6310_BUTTON_1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga5f5a2c9450ebc584b4fe743c6b1a280b">DEVICE_NAME</a>&#160;&#160;&#160;&quot;PWR_MGMT_DEMO&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga00094df3c7ff7f2c4f47ae51d3cfcb15">CONNECTABLE_ADV_INTERVAL</a>&#160;&#160;&#160;0x0020</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga6b8aee23a937868a6bbb2feeb08fd92e">NON_CONNECTABLE_ADV_INTERVAL</a>&#160;&#160;&#160;0x00A0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga335fca8c939c7948f344be20f4033cfa">CONNECTABLE_ADV_TIMEOUT</a>&#160;&#160;&#160;30</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga0c921a874ac37870fc1516ce66cd228a">SLAVE_LATENCY</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga799412c2b531ca347e13611e6e7523b9">CONN_SUP_TIMEOUT</a>&#160;&#160;&#160;(4 * 100)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga499913f33cd52975862964746893c65c">ADV_ENCODED_AD_TYPE_LEN</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gacea39bb4f33bedf27691dee46970be2b">ADV_ENCODED_AD_TYPE_LEN_LEN</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gad5d828ead699daee4e4ea6102a3d8fb7">ADV_ENCODED_UUID_LEN</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga1f05d89a33b1cf6b00e5fd613f9bbd09">ADV_FLAGS_LEN</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga7856d28e6d5f09d1290fe13cf6283175">ADV_ENCODED_FLAGS_LEN</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga79b025307017e3fc5661e38ee76b04fb">ADV_MANUF_DATA_LEN</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga4385d0276b988006b19c1fe08161fb7f">COMPANY_IDENTIFIER</a>&#160;&#160;&#160;0x0059</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga44a2aaf4d9ce96f1b25a577e09015ebc">LOCAL_SERVICE_UUID</a>&#160;&#160;&#160;0x1523</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf93b1cc507e504d92a6708d8aa959a31">LOCAL_CHAR_UUID</a>&#160;&#160;&#160;0x1524</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaec7f925a06b06de7081202c846b6d536">LOCAL_VENDOR_UUID_INDEX</a>&#160;&#160;&#160;0</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gadec561788a76b8a63ad9663625a25d78">assert_nrf_callback</a> (uint16_t line_num, const uint8_t *file_name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Assert macro callback function.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#gadec561788a76b8a63ad9663625a25d78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga76045b247174748cfb7bbd3db14171cd">char_notify</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Characteristic notification function.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga76045b247174748cfb7bbd3db14171cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga1004973353f351806e42896c491a5ab2">gap_params_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GAP initialization.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga1004973353f351806e42896c491a5ab2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga934bcce661439fc90412ca1db063b4b7">connectable_adv_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connectable advertisement parameters init function.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga934bcce661439fc90412ca1db063b4b7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga23b9d2f8790845fdf3dc42fefca65e85">non_connectable_adv_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-Connectable advertisement parameters init function.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga23b9d2f8790845fdf3dc42fefca65e85"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gae64bf38f2019810fa55bd7ceaa0d39e9">advertising_data_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Advertisement paccket init function.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#gae64bf38f2019810fa55bd7ceaa0d39e9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaefcf3206bdbe52a9eb2e07f58354b783">char_add</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Characteristic add function.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#gaefcf3206bdbe52a9eb2e07f58354b783"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gad49f9175444b3807f1656765165799a5">service_add</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Service add function.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#gad49f9175444b3807f1656765165799a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga121d089b824f9cd14b339f8fb0fae7b3">notif_timeout_handler</a> (app_timer_id_t timer_id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notification timeout handler.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga121d089b824f9cd14b339f8fb0fae7b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga38c78315f8d51b2ee6449ede5be4624c">connection_interval_timeout_handler</a> (app_timer_id_t timer_id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connection interval timeout handler.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga38c78315f8d51b2ee6449ede5be4624c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga59f2752bdf059ab72ec3987d0b1db770">application_timers_start</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start application timers.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga59f2752bdf059ab72ec3987d0b1db770"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8816338f0269bbffa4cf5c2ec105eee9"></a><!-- doxytag: member="nrf6310_nrf2752/ble/ble_app_pwr_profiling/main.c::application_timers_stop" ref="ga8816338f0269bbffa4cf5c2ec105eee9" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga8816338f0269bbffa4cf5c2ec105eee9">application_timers_stop</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop application timers. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gadf80cd84ee702e57a2a416fe4f653eb8"></a><!-- doxytag: member="nrf6310_nrf2752/ble/ble_app_pwr_profiling/main.c::advertising_start" ref="gadf80cd84ee702e57a2a416fe4f653eb8" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gadf80cd84ee702e57a2a416fe4f653eb8">advertising_start</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start advertising. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga09658aaa0774820d8f25249d551bc283">timers_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Timer initialization.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga09658aaa0774820d8f25249d551bc283"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga70525a816fec301fa4c9d564831c440b">on_write</a> (<a class="el" href="structble__evt__t.html">ble_evt_t</a> *p_ble_evt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Funtion that evaluates the value written in CCCD.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga70525a816fec301fa4c9d564831c440b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gad083cb3569230d7ecbf2d01ef2a2c1d9">on_ble_evt</a> (<a class="el" href="structble__evt__t.html">ble_evt_t</a> *p_ble_evt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Application's BLE Stack event handler.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#gad083cb3569230d7ecbf2d01ef2a2c1d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga2b08d6ccb6e7f4588d2ac843d4494c0e">ble_evt_dispatch</a> (<a class="el" href="structble__evt__t.html">ble_evt_t</a> *p_ble_evt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Dispatches a BLE stack event to all modules with a BLE stack event handler.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga2b08d6ccb6e7f4588d2ac843d4494c0e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaa06a7a39e83ec4cf3553f4ed6ba6323a">ble_stack_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">BLE stack initialization.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#gaa06a7a39e83ec4cf3553f4ed6ba6323a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga265c25c068555fbfae4ab4f391060040"></a><!-- doxytag: member="nrf6310_nrf2752/ble/ble_app_pwr_profiling/main.c::buttons_init" ref="ga265c25c068555fbfae4ab4f391060040" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga265c25c068555fbfae4ab4f391060040">buttons_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the wakeup buttons. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static __INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga8014b2b4745214caa69c5fddd0401388">gpio_pin_read</a> (uint32_t pin_number)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the state of the input pin.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#ga8014b2b4745214caa69c5fddd0401388"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3adda2642702fdb99b08992c39494000"></a><!-- doxytag: member="nrf6310_nrf2752/ble/ble_app_pwr_profiling/main.c::power_manage" ref="ga3adda2642702fdb99b08992c39494000" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga3adda2642702fdb99b08992c39494000">power_manage</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Power manager. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="nrf6310_nrf2752/ble/ble_app_pwr_profiling/main.c::main" ref="ga840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Application main function. <br/></td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="structble__uuid128__t.html">ble_uuid128_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gab2bc7dc71fbbcac4685881915c9ca91e">s_base_uuid128s</a> []</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">128-bit UUID base List.  <a href="group__ble__sdk__app__pwr__mgmt__main.html#gab2bc7dc71fbbcac4685881915c9ca91e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structble__gap__adv__params__t.html">ble_gap_adv_params_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga50483ecf69a0ae87ce1a8a5e8fa73c04">s_adv_params</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gabda72b268ff799e0669dc35bd53061e7">s_char_value</a> [APP_CFG_CHAR_LEN]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf2c1a985510302fbec992f686c392e3d">s_adv_manuf_data</a> [ADV_MANUF_DATA_LEN]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structble__gatts__char__handles__t.html">ble_gatts_char_handles_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga46f01b26e72f51c774e2bab1f9828bcc">s_char_handles</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaaf76d22968f9f320aa5005a25f654320">s_conn_handle</a> = BLE_CONN_HANDLE_INVALID</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga90ec27d28a69ce12e4dfac8889b64e30">s_service_handle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf1f61dda3c80fe8ee2ffdcbf6d8c902c">s_is_notifying_enabled</a> = false</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition in file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>
</div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c.html">main.c</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
